#!/usr/bin/env python
# -*- coding: utf-8 -*-

from enum import Enum


class Errno(Enum):
    SUCCESS = 0
    INVALID_AUTH_PARAMS = 1
    INVALID_TIMESTAMP = 2
    INVALID_SIGN = 3
    INVALID_VIN = 4

    def describe(self):
        return self.name.lower()


MAX_DIFF_TS = 5 * 60 * 1000  # 服务器与客户端上报最大时间差
# KAFKA_HOST = "172.27.6.100:9092"
KAFKA_HOST = "81.70.199.153:9092"
VEHICLE_TOPIC = 'vehicle_data'
